//ProductB.java
package builder.sample;

/**
 * Sample productB with two component.
 *@author:youtubezou
 *@version:2012-7-15
 */
public class ProductB {
	private String name;
	private double price;
	
	public void setName(String name){
		this.name = name;
	}
	
	public void setPrice(double price){
		this.price = price;
	}
	
	public String toString(){
		return "ProductA: " + "\n\t" + 
				"name:" + "\t" + name + "\n\t" + 
				"price:" + "\t" + price;
		
	}

}
